/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sv.edu.ufg.mir.Calcula.Area;

/**
 *
 * @author javaee
 */
public class Circulo {
    public static final double PI=3.141516;
    private double radio;
    public Circulo(){
        this.radio=0;
        
    }

    public Circulo(double radio) {
        this.radio = radio;
    }

    public double getRadio() {
        return radio;
    }

    public void setRadio(double radio) {
        this.radio = radio;
    }

    @Override
    public String toString() {
        return "Circulo{" + "radio=" + radio + '}';
    }
    
    public double CalcularArea(){
        double area=PI+(this.radio * this.radio);
        return area;
        
    }
    public double CalcularPerimetro(){
        double perimetro=2*PI*(this.radio * this.radio);
        return perimetro;
    }
    
}
